﻿using System;
using System.Collections.Generic;
using System.IO;
using WindowPlugins;
using NLog;

namespace dlCentral.PluginHandlers {
    internal class MoviesHandler : PluginHandler {
        private static Logger logger = LogManager.GetCurrentClassLogger();

        public override int ID {
            get { return 6; }
            set { }
        }

        public override string PluginName {
            get { return "Movies"; }
            set { }
        }

        // The video file details we want to grab subtitles for.
        public override BasicMediaDetail MediaDetail {
            get { return _mediaDetail; }
            set { }
        }
        private BasicMediaDetail _mediaDetail;

        public override bool Modified {
            get { return false; }
            set { }
        }

        // retrieves info from Moving Pictures
        protected override bool GrabFileDetails() {
            return true;
        }

        public override bool GetHasSubtitles() {
            return false;
        }

        public override void SetHasSubtitles(string fileName, bool value) {
            if (_mediaDetail.Files == null || _mediaDetail.Files.Count == 0) return;

        }

        protected override bool IsAvailable() {
            return true;
        }
    }
}
